package com.corechina.apex_osswords.controller;


import com.corechina.apex_osswords.common.Response;
import com.corechina.apex_osswords.service.ISysLogsService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 * 系统日志表 前端控制器
 * </p>
 *
 * @author cc
 * @since 2022-03-03
 */

@Api(tags = "日志管理")
@RestController
@RequestMapping("/sys/logs")
public class SysLogsController {

    @Autowired
    private ISysLogsService iSysLogsService;

    @ApiOperation("获取日志列表")
    @GetMapping("/getAllSysLogs")
    public Response getAllSysLogs(Integer operator, String ip, String operation, String beginTime, String endTime, Integer pageIndex, Integer pageSize) {
        return iSysLogsService.getAllSysLogs(operator, ip, operation, beginTime, endTime, pageIndex, pageSize);
    }

}

